Skip to content

[WIP] Deprecate TerminalReporter.writer - #2990

Closed
nicoddemus wants to merge 4 commits into
pytest-dev:featuresfrom
nicoddemus:deprecate-tr-writer-2984
Closed

[WIP] Deprecate TerminalReporter.writer #2990
nicoddemus wants to merge 4 commits into
pytest-dev:featuresfrom
nicoddemus:deprecate-tr-writer-2984

Conversation

@nicoddemus

Copy link
Copy Markdown
Member

Note that this is meant to be merged after #2989 and into the features branch.

@nicoddemus
nicoddemus force-pushed the deprecate-tr-writer-2984 branch 2 times, most recently from 16f943a to 7dd1c3c Compare November 30, 2017 22:03
@nicoddemus
nicoddemus force-pushed the deprecate-tr-writer-2984 branch from 7dd1c3c to b2f9844 Compare November 30, 2017 22:59
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 92.704% when pulling b2f9844 on nicoddemus:deprecate-tr-writer-2984 into 2947299 on pytest-dev:features.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 92.704% when pulling b2f9844 on nicoddemus:deprecate-tr-writer-2984 into 2947299 on pytest-dev:features.

Comment thread _pytest/terminal.py

@property
def writer(self):
warnings.warn(TERMINAL_REPORTER_WARNING, stacklevel=2)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i propose to rename the internal property and trigger the deprecation also on the changing of self._tw to get bad players in line

@nicoddemus nicoddemus closed this Aug 18, 2018
@nicoddemus
nicoddemus deleted the deprecate-tr-writer-2984 branch August 18, 2018 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants